<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="ClientManage.aspx.vb" Inherits="GTSWeb_Client" title="GTS Frieght Management System"  MaintainScrollPositionOnPostback="true" %>
<asp:Content ID="GTSClientAdmin" ContentPlaceHolderID="ContentPlaceHolder" Runat="Server">
    <span style="font-size: 24pt">
        </span><h3>
            Clients Management</h3>
    <table style="width: 84%">
        <tr>
            <td style="width: 161px; text-align: right;">
                <strong>&nbsp;Client Name&nbsp; </strong>
            </td>
            <td style="width: 270px">
                <asp:TextBox ID="txtSearch" runat="server" Width="267px"></asp:TextBox></td>
            <td>
        <asp:Button ID="btnSearch" runat="server" Text="Search" Width="94px" /></td>
        </tr>
    </table>
    <asp:GridView ID="GetAllClientInfoGridView" runat="server" AllowPaging="True" AutoGenerateColumns="False"
        CellPadding="4" DataKeyNames="ClientID" DataSourceID="GetClientInfoObjectDataSource"
        ForeColor="#333333" GridLines="None" PageSize="4" Width="100%">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <Columns>
            <asp:CommandField ShowSelectButton="True" />
            <asp:BoundField DataField="ClientName" HeaderText="ClientName" SortExpression="ClientName" />
            <asp:BoundField DataField="ContractStartDate" HeaderText="ContractStartDate" SortExpression="ContractStartDate" />
            <asp:BoundField DataField="ContractEndDate" HeaderText="ContractEndDate" SortExpression="ContractEndDate" />
        </Columns>
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <EditRowStyle BackColor="#999999" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
    </asp:GridView>
    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"
        CellPadding="4" DataKeyNames="ClientID" DataSourceID="GetClientObjectDataSource"
        ForeColor="#333333" GridLines="None" Height="317px" Width="100%">
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
        <EditRowStyle BackColor="#999999" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <Fields>
            <asp:TemplateField HeaderText="ClientName" SortExpression="ClientName">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("ClientName") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox4"
                        ErrorMessage="Required: ClientName">*</asp:RequiredFieldValidator>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("ClientName") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="TextBox2"
                        ErrorMessage="Required:ClientName">*</asp:RequiredFieldValidator>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("ClientName") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="StatusID" SortExpression="StatusID">
                <EditItemTemplate>
                    <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="DDLStatus" DataTextField="StatusName"
                        DataValueField="StatusID" SelectedValue='<%# Bind("StatusID") %>'>
                    </asp:DropDownList><asp:ObjectDataSource ID="DDLStatus" runat="server" OldValuesParameterFormatString="original_{0}"
                        SelectMethod="getStatus" TypeName="GTSSystem.BLL.Status"></asp:ObjectDataSource>
                    <br />
                    &nbsp;&nbsp;
                </EditItemTemplate>
                <InsertItemTemplate>
                    &nbsp;<asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="DDLStatus"
                        DataTextField="StatusName" DataValueField="StatusID" SelectedValue='<%# Bind("StatusID") %>'>
                    </asp:DropDownList><asp:ObjectDataSource ID="DDLStatus" runat="server" OldValuesParameterFormatString="original_{0}"
                        SelectMethod="getStatus" TypeName="GTSSystem.BLL.Status"></asp:ObjectDataSource>
                </InsertItemTemplate>
                <ItemTemplate>
                    &nbsp;<br />
                    <asp:DropDownList ID="DropDownList1" runat="server" DataSourceID="DDLStatus" DataTextField="StatusName"
                        DataValueField="StatusID" Enabled="False" SelectedValue='<%# Bind("StatusID") %>'>
                    </asp:DropDownList><asp:ObjectDataSource ID="DDLStatus" runat="server" OldValuesParameterFormatString="original_{0}"
                        SelectMethod="getStatus" TypeName="GTSSystem.BLL.Status"></asp:ObjectDataSource>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="ContractStartDate" SortExpression="ContractStartDate">
                <EditItemTemplate>
                    &nbsp;&nbsp;
                    <asp:Calendar ID="Calendar1" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66"
                        BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana"
                        Font-Size="8pt" ForeColor="#663399" Height="200px" VisibleDate='2006-07-01'
                        Width="220px" SelectedDate='<%# Bind("ContractStartDate") %>' ShowGridLines="True">
                        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                        <SelectorStyle BackColor="#FFCC66" />
                        <OtherMonthDayStyle ForeColor="#CC9966" />
                        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                        <DayHeaderStyle BackColor="#FFCC66" Height="1px" Font-Bold="True" />
                        <TitleStyle BackColor="#990000" Font-Bold="True"
                            Font-Size="9pt" ForeColor="#FFFFCC" />
                    </asp:Calendar>
                </EditItemTemplate>
                <InsertItemTemplate>
                    &nbsp;&nbsp;&nbsp;
                    <asp:Calendar ID="Calendar1" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66"
                        BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana"
                        Font-Size="8pt" ForeColor="#663399" Height="200px" VisibleDate='2006-07-01'
                        Width="220px" SelectedDate='<%# Bind("ContractStartDate") %>' ShowGridLines="True">
                        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                        <SelectorStyle BackColor="#FFCC66" />
                        <OtherMonthDayStyle ForeColor="#CC9966" />
                        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                        <DayHeaderStyle BackColor="#FFCC66" Height="1px" Font-Bold="True" />
                        <TitleStyle BackColor="#990000" Font-Bold="True"
                            Font-Size="9pt" ForeColor="#FFFFCC" />
                    </asp:Calendar>
                </InsertItemTemplate>
                <ItemTemplate>
                    &nbsp;
                    <asp:Calendar ID="Calendar1" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66"
                        BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana"
                        Font-Size="8pt" ForeColor="#663399" Height="200px" VisibleDate='2006-07-01'
                        Width="220px" SelectedDate='<%# Bind("ContractStartDate") %>' ShowGridLines="True">
                        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                        <SelectorStyle BackColor="#FFCC66" />
                        <OtherMonthDayStyle ForeColor="#CC9966" />
                        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                        <DayHeaderStyle BackColor="#FFCC66" Height="1px" Font-Bold="True" />
                        <TitleStyle BackColor="#990000" Font-Bold="True"
                            Font-Size="9pt" ForeColor="#FFFFCC" />
                    </asp:Calendar>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="ContractEndDate" SortExpression="ContractEndDate">
                <EditItemTemplate>
                    &nbsp;<asp:Calendar ID="Calendar2" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66"
                        BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana"
                        Font-Size="8pt" ForeColor="#663399" Height="200px" VisibleDate='<%# Eval("ContractEndDate") %>'
                        Width="220px" SelectedDate='<%# Bind("ContractEndDate") %>' ShowGridLines="True">
                        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                        <SelectorStyle BackColor="#FFCC66" />
                        <OtherMonthDayStyle ForeColor="#CC9966" />
                        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                        <DayHeaderStyle BackColor="#FFCC66" Height="1px" Font-Bold="True" />
                        <TitleStyle BackColor="#990000" Font-Bold="True"
                            Font-Size="9pt" ForeColor="#FFFFCC" />
                    </asp:Calendar>
                    &nbsp;
                </EditItemTemplate>
                <InsertItemTemplate>
                    &nbsp;<asp:Calendar ID="Calendar2" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66"
                        BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana"
                        Font-Size="8pt" ForeColor="#663399" Height="200px" VisibleDate='<%# Eval("ContractEndDate") %>'
                        Width="220px" SelectedDate='<%# Bind("ContractEndDate") %>' ShowGridLines="True">
                        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                        <SelectorStyle BackColor="#FFCC66" />
                        <OtherMonthDayStyle ForeColor="#CC9966" />
                        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                        <DayHeaderStyle BackColor="#FFCC66" Height="1px" Font-Bold="True" />
                        <TitleStyle BackColor="#990000" Font-Bold="True"
                            Font-Size="9pt" ForeColor="#FFFFCC" />
                    </asp:Calendar>
                    &nbsp;&nbsp;
                </InsertItemTemplate>
                <ItemTemplate>
                    &nbsp;<asp:Calendar ID="Calendar2" runat="server" BackColor="#FFFFCC" BorderColor="#FFCC66"
                        BorderWidth="1px" DayNameFormat="Shortest" Font-Names="Verdana"
                        Font-Size="8pt" ForeColor="#663399" Height="200px" VisibleDate='<%# Eval("ContractEndDate") %>'
                        Width="220px" SelectedDate='<%# Bind("ContractEndDate") %>' ShowGridLines="True">
                        <SelectedDayStyle BackColor="#CCCCFF" Font-Bold="True" />
                        <TodayDayStyle BackColor="#FFCC66" ForeColor="White" />
                        <SelectorStyle BackColor="#FFCC66" />
                        <OtherMonthDayStyle ForeColor="#CC9966" />
                        <NextPrevStyle Font-Size="9pt" ForeColor="#FFFFCC" />
                        <DayHeaderStyle BackColor="#FFCC66" Height="1px" Font-Bold="True" />
                        <TitleStyle BackColor="#990000" Font-Bold="True"
                            Font-Size="9pt" ForeColor="#FFFFCC" />
                    </asp:Calendar>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="ContactName" SortExpression="ContactName">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("ContactName") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="TextBox7"
                        ErrorMessage="Required: ContactName">*</asp:RequiredFieldValidator>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("ContactName") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="TextBox5"
                        ErrorMessage="Required: ContactName">*</asp:RequiredFieldValidator>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label7" runat="server" Text='<%# Bind("ContactName") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Phone" SortExpression="Phone">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("Phone") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator12" runat="server" ControlToValidate="TextBox8"
                        ErrorMessage="Required: Phone">*</asp:RequiredFieldValidator>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("Phone") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator13" runat="server" ControlToValidate="TextBox6"
                        ErrorMessage="Required: Phone">*</asp:RequiredFieldValidator>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label8" runat="server" Text='<%# Bind("Phone") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Fax" SortExpression="Fax">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox16" runat="server" Text='<%# Bind("Fax") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ControlToValidate="TextBox16"
                        ErrorMessage="Required: Fax">*</asp:RequiredFieldValidator>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("Fax") %>'></asp:TextBox>&nbsp;
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator11" runat="server" ControlToValidate="TextBox14"
                        ErrorMessage="Required: Fax">*</asp:RequiredFieldValidator>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label16" runat="server" Text='<%# Bind("Fax") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Email" SortExpression="Email">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("Email") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator14" runat="server" ControlToValidate="TextBox9"
                        ErrorMessage="Required: Email">*</asp:RequiredFieldValidator>&nbsp;
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("Email") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator15" runat="server" ControlToValidate="TextBox7"
                        ErrorMessage="Required: Email">*</asp:RequiredFieldValidator>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label9" runat="server" Text='<%# Bind("Email") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="StreetAddress" SortExpression="StreetAddress">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("StreetAddress") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator16" runat="server" ControlToValidate="TextBox10"
                        ErrorMessage="Required: StreetAddress">*</asp:RequiredFieldValidator>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("StreetAddress") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator17" runat="server" ControlToValidate="TextBox8"
                        ErrorMessage="Required: Address">*</asp:RequiredFieldValidator>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label10" runat="server" Text='<%# Bind("StreetAddress") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="City" SortExpression="City">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("City") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator18" runat="server" ControlToValidate="TextBox11"
                        ErrorMessage="Required:City">*</asp:RequiredFieldValidator>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("City") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator19" runat="server" ControlToValidate="TextBox9"
                        ErrorMessage="Required: City">*</asp:RequiredFieldValidator>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label11" runat="server" Text='<%# Bind("City") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="ProvinceState" SortExpression="ProvinceState">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("ProvinceState") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator20" runat="server" ControlToValidate="TextBox12"
                        ErrorMessage="Required: State">*</asp:RequiredFieldValidator>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox10" runat="server" Text='<%# Bind("ProvinceState") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator21" runat="server" ControlToValidate="TextBox10"
                        ErrorMessage="Required: State">*</asp:RequiredFieldValidator>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label12" runat="server" Text='<%# Bind("ProvinceState") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Country" SortExpression="Country">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("Country") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator22" runat="server" ControlToValidate="TextBox13"
                        ErrorMessage="Required: Country">*</asp:RequiredFieldValidator>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox11" runat="server" Text='<%# Bind("Country") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator23" runat="server" ControlToValidate="TextBox11"
                        ErrorMessage="Required: Country">*</asp:RequiredFieldValidator>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label13" runat="server" Text='<%# Bind("Country") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="PostalCode" SortExpression="PostalCode">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox14" runat="server" Text='<%# Bind("PostalCode") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ControlToValidate="TextBox14"
                        ErrorMessage="Required: PostalCode">*</asp:RequiredFieldValidator>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox12" runat="server" Text='<%# Bind("PostalCode") %>'></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator24" runat="server" ControlToValidate="TextBox12"
                        ErrorMessage="Required: PostalCode">*</asp:RequiredFieldValidator>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label14" runat="server" Text='<%# Bind("PostalCode") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="StatusName" SortExpression="StatusName" Visible="False">
                <EditItemTemplate>
                    <asp:TextBox ID="TextBox15" runat="server" Text='<%# Bind("StatusName") %>'></asp:TextBox>
                </EditItemTemplate>
                <InsertItemTemplate>
                    <asp:TextBox ID="TextBox13" runat="server" Text='<%# Bind("StatusName") %>'></asp:TextBox>
                </InsertItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label15" runat="server" Text='<%# Bind("StatusName") %>'></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="LocationID" InsertVisible="False" SortExpression="LocationID">
                <EditItemTemplate>
                    <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="DDLLocation" DataTextField="City"
                        DataValueField="LocationID" SelectedValue='<%# Bind("LocationID") %>'>
                    </asp:DropDownList><asp:ObjectDataSource ID="DDLLocation" runat="server" InsertMethod="addLocation"
                        OldValuesParameterFormatString="original_{0}" SelectMethod="getLocations" TypeName="GTSSystem.BLL.Location"
                        UpdateMethod="updateLocation">
                        <UpdateParameters>
                            <asp:Parameter Name="LocationID" Type="Int32" />
                            <asp:Parameter Name="City" Type="String" />
                            <asp:Parameter Name="ProvinceState" Type="String" />
                            <asp:Parameter Name="Country" Type="String" />
                            <asp:Parameter Name="PostalCode" Type="String" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:Parameter Name="City" Type="String" />
                            <asp:Parameter Name="ProvinceState" Type="String" />
                            <asp:Parameter Name="Country" Type="String" />
                            <asp:Parameter Name="PostalCode" Type="String" />
                        </InsertParameters>
                    </asp:ObjectDataSource>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:DropDownList ID="DropDownList2" runat="server" DataSourceID="DDLLocation" DataTextField="City"
                        DataValueField="LocationID" Enabled="False" SelectedValue='<%# Eval("LocationID") %>'>
                    </asp:DropDownList><asp:ObjectDataSource ID="DDLLocation" runat="server" InsertMethod="addLocation"
                        OldValuesParameterFormatString="original_{0}" SelectMethod="getLocations" TypeName="GTSSystem.BLL.Location"
                        UpdateMethod="updateLocation">
                        <UpdateParameters>
                            <asp:Parameter Name="LocationID" Type="Int32" />
                            <asp:Parameter Name="City" Type="String" />
                            <asp:Parameter Name="ProvinceState" Type="String" />
                            <asp:Parameter Name="Country" Type="String" />
                            <asp:Parameter Name="PostalCode" Type="String" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:Parameter Name="City" Type="String" />
                            <asp:Parameter Name="ProvinceState" Type="String" />
                            <asp:Parameter Name="Country" Type="String" />
                            <asp:Parameter Name="PostalCode" Type="String" />
                        </InsertParameters>
                    </asp:ObjectDataSource>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="ContactInfoID" InsertVisible="False" SortExpression="ContactInfoID">
                <EditItemTemplate>
                    <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="DDLContactInfo"
                        DataTextField="ContactName" DataValueField="ContactInfoID" SelectedValue='<%# Bind("ContactInfoID") %>'>
                    </asp:DropDownList><asp:ObjectDataSource ID="DDLContactInfo" runat="server" InsertMethod="addContactInfo"
                        OldValuesParameterFormatString="original_{0}" SelectMethod="getContactInfo" TypeName="GTSSystem.BLL.ContactInfo"
                        UpdateMethod="updateContactInfo">
                        <UpdateParameters>
                            <asp:Parameter Name="ContactInfoID" Type="Int32" />
                            <asp:Parameter Name="LocationID" Type="Int32" />
                            <asp:Parameter Name="ContactName" Type="String" />
                            <asp:Parameter Name="Phone" Type="String" />
                            <asp:Parameter Name="Fax" Type="String" />
                            <asp:Parameter Name="Email" Type="String" />
                            <asp:Parameter Name="StreetAddress" Type="String" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:Parameter Name="LocationID" Type="Int32" />
                            <asp:Parameter Name="ContactName" Type="String" />
                            <asp:Parameter Name="Phone" Type="String" />
                            <asp:Parameter Name="Fax" Type="String" />
                            <asp:Parameter Name="Email" Type="String" />
                            <asp:Parameter Name="StreetAddress" Type="String" />
                        </InsertParameters>
                    </asp:ObjectDataSource>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:DropDownList ID="DropDownList3" runat="server" DataSourceID="DDLContactInfo"
                        DataTextField="ContactName" DataValueField="ContactInfoID" Enabled="False" SelectedValue='<%# Eval("ContactInfoID") %>'>
                    </asp:DropDownList><asp:ObjectDataSource ID="DDLContactInfo" runat="server" InsertMethod="addContactInfo"
                        SelectMethod="getContactInfo" TypeName="GTSSystem.BLL.ContactInfo" UpdateMethod="updateContactInfo">
                        <UpdateParameters>
                            <asp:Parameter Name="ContactInfoID" Type="Int32" />
                            <asp:Parameter Name="LocationID" Type="Int32" />
                            <asp:Parameter Name="ContactName" Type="String" />
                            <asp:Parameter Name="Phone" Type="String" />
                            <asp:Parameter Name="Fax" Type="String" />
                            <asp:Parameter Name="Email" Type="String" />
                            <asp:Parameter Name="StreetAddress" Type="String" />
                        </UpdateParameters>
                        <InsertParameters>
                            <asp:Parameter Name="LocationID" Type="Int32" />
                            <asp:Parameter Name="ContactName" Type="String" />
                            <asp:Parameter Name="Phone" Type="String" />
                            <asp:Parameter Name="Fax" Type="String" />
                            <asp:Parameter Name="Email" Type="String" />
                            <asp:Parameter Name="StreetAddress" Type="String" />
                        </InsertParameters>
                    </asp:ObjectDataSource>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:CommandField ShowEditButton="True" />
        </Fields>
        <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" Width="100px" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <FooterTemplate>
            &nbsp;
        </FooterTemplate>
        <HeaderTemplate>
            Client Information
        </HeaderTemplate>
    </asp:DetailsView>
            <asp:ValidationSummary ID="ValidationSummary1" runat="server" ForeColor="Navy" Width="276px" />
    <asp:ObjectDataSource ID="GetClientInfoObjectDataSource" runat="server" InsertMethod="CreateClient"
        OldValuesParameterFormatString="{0}" SelectMethod="LookupClientbyClientName"
        TypeName="GTSSystem.BLL.Client" UpdateMethod="UpdateClient">
        <UpdateParameters>
            <asp:Parameter Name="ClientId" Type="Int32" />
            <asp:Parameter Name="ContactInfoId" Type="Int32" />
            <asp:Parameter Name="LocationId" Type="Int32" />
            <asp:Parameter Name="ClientName" Type="String" />
            <asp:Parameter Name="StatusId" Type="Int32" />
            <asp:Parameter Name="ContractStartDate" Type="DateTime" />
            <asp:Parameter Name="ContractEndDate" Type="DateTime" />
            <asp:Parameter Name="ContactName" Type="String" />
            <asp:Parameter Name="Phone" Type="String" />
            <asp:Parameter Name="Fax" Type="String" />
            <asp:Parameter Name="Email" Type="String" />
            <asp:Parameter Name="StreetAddress" Type="String" />
            <asp:Parameter Name="City" Type="String" />
            <asp:Parameter Name="ProvinceState" Type="String" />
            <asp:Parameter Name="Country" Type="String" />
            <asp:Parameter Name="PostalCode" Type="String" />
        </UpdateParameters>
        <SelectParameters>
            <asp:ControlParameter ControlID="txtSearch" ConvertEmptyStringToNull="False" Name="ClientName"
                PropertyName="Text" Type="String" />
        </SelectParameters>
        <InsertParameters>
            <asp:Parameter Name="ClientName" Type="String" />
            <asp:Parameter Name="StatusId" Type="Int32" />
            <asp:Parameter Name="ContractStartDate" Type="DateTime" />
            <asp:Parameter Name="ContractEndDate" Type="DateTime" />
            <asp:Parameter Name="ContactName" Type="String" />
            <asp:Parameter Name="Phone" Type="String" />
            <asp:Parameter Name="Fax" Type="String" />
            <asp:Parameter Name="Email" Type="String" />
            <asp:Parameter Name="StreetAddress" Type="String" />
            <asp:Parameter Name="City" Type="String" />
            <asp:Parameter Name="ProvinceState" Type="String" />
            <asp:Parameter Name="Country" Type="String" />
            <asp:Parameter Name="PostalCode" Type="String" />
        </InsertParameters>
    </asp:ObjectDataSource>
    <strong><span style="color: #ff0066"> </span></strong><strong><span style="color: #ff0066">
    </span></strong>
    <asp:ObjectDataSource ID="GetClientObjectDataSource" runat="server" InsertMethod="CreateClient"
        OldValuesParameterFormatString="{0}" SelectMethod="LookupClientbyClientId"
        TypeName="GTSSystem.BLL.Client" UpdateMethod="UpdateClient">
        <UpdateParameters>
            <asp:Parameter Name="ClientId" Type="Int32" />
            <asp:Parameter Name="ContactInfoId" Type="Int32" />
            <asp:Parameter Name="LocationId" Type="Int32" />
            <asp:Parameter Name="ClientName" Type="String" />
            <asp:Parameter Name="StatusId" Type="Int32" />
            <asp:Parameter Name="ContractStartDate" Type="DateTime" />
            <asp:Parameter Name="ContractEndDate" Type="DateTime" />
            <asp:Parameter Name="ContactName" Type="String" />
            <asp:Parameter Name="Phone" Type="String" />
            <asp:Parameter Name="Fax" Type="String" />
            <asp:Parameter Name="Email" Type="String" />
            <asp:Parameter Name="StreetAddress" Type="String" />
            <asp:Parameter Name="City" Type="String" />
            <asp:Parameter Name="ProvinceState" Type="String" />
            <asp:Parameter Name="Country" Type="String" />
            <asp:Parameter Name="PostalCode" Type="String" />
        </UpdateParameters>
        <SelectParameters>
            <asp:ControlParameter ControlID="GetAllClientInfoGridView" Name="ClientId" PropertyName="SelectedValue"
                Type="Int32" />
        </SelectParameters>
        <InsertParameters>
            <asp:Parameter Name="ClientName" Type="String" />
            <asp:Parameter Name="StatusId" Type="Int32" />
            <asp:Parameter Name="ContractStartDate" Type="DateTime" />
            <asp:Parameter Name="ContractEndDate" Type="DateTime" />
            <asp:Parameter Name="ContactName" Type="String" />
            <asp:Parameter Name="Phone" Type="String" />
            <asp:Parameter Name="Fax" Type="String" />
            <asp:Parameter Name="Email" Type="String" />
            <asp:Parameter Name="StreetAddress" Type="String" />
            <asp:Parameter Name="City" Type="String" />
            <asp:Parameter Name="ProvinceState" Type="String" />
            <asp:Parameter Name="Country" Type="String" />
            <asp:Parameter Name="PostalCode" Type="String" />
        </InsertParameters>
    </asp:ObjectDataSource>
</asp:Content>

